package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.TravelComment;
import cn.wolfcode.luowowo.comment.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * 游记评论服务
 */
public interface ITravelCommentService {
    String save(TravelComment comment);


    /**
     * 分页
     *
     */
    List<TravelComment> list();

    /**
     * 查单个
     * @param id
     * @return
     */
    TravelComment get(String id);

    Page<TravelComment> query(TravelCommentQuery qo);

    Page<TravelComment> findByTravelId(TravelCommentQuery qo);

}
